<?php
	require"db_connection.php";
	
	$sql = "SELECT
			 ralimorates.id,
			 ralimorates.cityname,
			 ralimorates.companyname,
			 ralimorates.vehicletype,
			 ralimorates.vehiclemodel,
			 ralimorates.capacity,
			 ralimorates.availability
			 FROM
			 ralimorates";
	$res = mysql_query($sql);
	
	$acc_num = 0 ;
	$class_alternate = "";
	while( $row = mysql_fetch_array($res)){
		$acc_num  = $acc_num+1;
		echo "<tr class='".$class_alternate."'>
				<td>".$acc_num."</td>
				<td>".$row['cityname']."</td>
				<td>".$row['vehicletype']."</td>
				<td>".$row['vehiclemodel']."</td>
				<td>".$row['capacity']."</td>
				<td class='options-width'>
					<a href='edit_ralimo_rates.php?id=".$row['id']."' title='Edit' class='icon-1 info-tooltip'></a>
					<a href='#' title='Delete' class='icon-2 info-tooltip' onclick='delete_ralimo_rates(\"".$row['id']."\")'></a>
				</td>
			 </tr>";
	}
?>